<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta content="telephone=no" name="format-detection" />
  <meta itemprop="name" content="" />
  <meta itemprop="image" content="/img/share-icon.jpg" />
  <meta name="description" itemprop="description" content="" />
  <link rel="stylesheet" href="/css/reset.css">
  <link rel="stylesheet" href="/css/normalize.css">
  <title>英语直播课</title>
  <style>
    body {
      background-color: #ffdad8;
    }

    .footer {
      width: 90%;
      height: 1.8rem;
      background: #F05153;
      border: 0.08rem solid #282859;
      border-radius: 0.08rem;
      margin: 0 auto;
      text-align: center;
      padding-top: 0.3rem;
      padding-bottom: 0.2rem;
      box-sizing: border-box;
      margin-bottom: 0.45rem;
      margin-top: -0.1rem;
    }

    img {
      width: 100%;
    }
  </style>
  <script>
    ! function (e) {
      function t(a) {
        if (i[a]) return i[a].exports;
        var n = i[a] = {
          exports: {},
          id: a,
          loaded: !1
        };
        return e[a].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports
      }
      var i = {};
      return t.m = e, t.c = i, t.p = "", t(0)
    }([function (e, t) {
      "use strict";
      Object.defineProperty(t, "__esModule", {
        value: !0
      });
      var i = window;
      t["default"] = i.flex = function (normal, e, t) {
        var a = e || 100,
          n = t || 1,
          r = i.document,
          o = navigator.userAgent,
          d = o.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i),
          l = o.match(/U3\/((\d+|\.){5,})/i),
          c = l && parseInt(l[1].split(".").join(""), 10) >= 80,
          p = navigator.appVersion.match(/(iphone|ipad|ipod)/gi),
          s = i.devicePixelRatio || 1;
        p || d && d[1] > 534 || c || (s = 1);
        var u = normal ? 1 : 1 / s,
          m = r.querySelector('meta[name="viewport"]');
        m || (m = r.createElement("meta"), m.setAttribute("name", "viewport"), r.head.appendChild(m)), m.setAttribute(
          "content", "width=device-width,user-scalable=no,initial-scale=" + u + ",maximum-scale=" + u +
          ",minimum-scale=" + u), r.documentElement.style.fontSize = normal ? "50px" : a / 2 * s * n + "px"
      }, e.exports = t["default"]
    }]);
    flex(false, 100, 1);
  </script>
</head>

<body>
  <div class="content">
    <img src="" alt="分享" id="img">
  </div>
  <script src="https://sfile.tl100.com/js/libs/axios.min.js"></script>
  <script>
    // /api/user/getXiaoFengShareImage
    // 获取图片
    var api = axios.create({
      baseURL: 'https://api.tl100.com/exam_signup',
      withCredentials: true,
      timeout: 5000
    });
    var token = localStorage.getItem('token');
    if (token && token != '') {
      api.post('/api/user/getXiaoFengShareImage', {
        token: token
      }).then(function (res) {
        console.log(res);
        // var id = res.data.msg.split('/')[res.data.msg.split('/').length - 1];
        var date = new Date();
        var time = date.getTime();
        // document.getElementById('img').src = res.data.msg + '?' + time;
      })
    } else {
      location.replace('/yyzbk/signup');
    }

  </script>
</body>

</html>